{% include "header.html" %}
<h2>Create an Account</h2>
<p>Please ensure your information is correct.</p>
<form action="/safc/createaccount/" method="post">
    {{ form.non_field_errors }}
    {% if form.subjects.errors %}
        <ol>
        {% for error in form.subject.errors %}
            <li><b>{{ error|escape }}</b></li>
        {% endfor %}
        </ol>
    {% endif %}
    <table class="ctacc" cellspacing="3" cellpadding="3" border="0">
    <tr>
        <td class="t"><label for="id_name">Username:</label></td>
        <td>{{ form.name }}</td>
        <td>{{ form.name.errors }}</td>
    </tr>
    <tr>
        <td class="t"><label for="id_email">Email:</label></td>
        <td>{{ form.email }}</td>
        <td>{{ form.email.errors }}</td>
    </tr>
    <tr>
        <td class="t"><label for="id_password_one">Password:</label></td>
        <td>{{ form.password_one }}</td>
        <td>{{ form.password_one.errors }}</td>
    </tr>
    <tr>
        <td class="t"><label for="id_password_two">Confirm Password:</label></td>
        <td>{{ form.password_two }}</td>
        <td>{{ form.password_two.errors }}</td>
    </tr>
    </table>
    <div>
    <i>These usernames have been taken:</i><br />
    <table border="0">
    {% for u in users_taken %}
        {{ u.username }},
    {% endfor %}
    </table>
    </div>
    <p><input type="submit" value="Submit" /></p>
</form>
{% include "footer.html" %}
